import requests
import json

# 获取测试用例2的详细信息
response = requests.get('http://127.0.0.1:5000/api/testcases/2')
testcase = response.json()

print("测试用例详细信息:")
print(json.dumps(testcase, indent=2, ensure_ascii=False))

# 解析并打印测试步骤
steps = json.loads(testcase['steps'])
print("\n测试步骤:")
for i, step in enumerate(steps):
    print(f"步骤 {i+1}: {step}")